<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::controller('auth', 'Auth\AuthController');
Route::group(['middleware' => 'auth'], function () {
	Route::get('/', 'IndexController@getIndex');
	Route::controller('index', 'IndexController');
	Route::controller('admin', 'AdminController');
	Route::controller('role', 'RoleController');
	Route::controller('menu', 'MenuController');
	Route::controller('tag', 'TagController');
	Route::controller('windows', 'WindowsController');

	Route::controller('ios', 'IOSController');

	Route::controller('site', 'SiteController');

});

Route::get('unionpay/pay','UnionpayController@pay');
Route::post('unionpay/return','UnionpayController@result');

Route::controller('helper', 'HelperController');
Route::get('tooltip/success', function () {return view('tooltip.success');});
Route::get('tooltip/failure', function () {return view('tooltip.failure');});
Route::get('tooltip/accessfailure', function () {return view('tooltip.accessfailure');});